package behavior.state;

public class ProjectStartupContext {
    private AbsStartState state;

    public ProjectStartupContext(AbsStartState startState){
        this.state = startState;
        startState.setContext(this);
    }

    public AbsStartState getState() {
        return state;
    }

    public void setState(AbsStartState state) {
        this.state = state;
        this.state.setContext(this);
    }

    public void dispatch(){
        this.state.dispatch();
    }

    public boolean isTerminalState(){
        return this.state.isTerminalState();
    }
}
